gtk-demo: Simplify the run button
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 Nov 2020 17:54:48 +0000 (12:54 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 4 Nov 2020 17:54:48 +0000 (12:54 -0500)
Don't create the label manually. It is not necessary,
and letting the button do it also improves the
accessibility setup.

demos/gtk-demo/main.ui

index 9dc7aba86c12618b6b9e13818b4bc92011ef1e38..60f2d7e0a51422ecfe0211e0929e4698fd1a04c2 100644 (file)
           <object class="GtkButton">
             <property name="valign">center</property>
             <property name="action-name">win.run</property>
-            <style>
-              <class name="text-button"/>
-            </style>
-            <child>
-              <object class="GtkLabel">
-                <property name="label" translatable="yes">Run</property>
-              </object>
-            </child>
+            <property name="label" translatable="yes">Run</property>
           </object>
         </child>
         <child type="end">